<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/luntan/Public/css/css.css" />
<script type="text/javascript" src="/luntan/Public/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/luntan/Public/js/jquery-1.10.2.min.js"></script>

<style>
*{ margin:0; padding:0; list-style:none;}
body{  color:#fff; text-align:left;}
h1{ text-align:center;}

.zzsc{ width:100%; height:717px; background:#fff; font-family:'微软雅黑';}
.zzsc .tab{ overflow:hidden;background: #ededed none repeat scroll 0 0;}
.zzsc .tab a{ width:203px;height:60px;display:block; float:left; text-decoration:none; color:#333;border-bottom: 1px solid #d3d3d3;border-right: 1px solid #d3d3d3; text-align:center;line-height:60px;
border-top: 1px solid #f9f9f9;background: #ededed none repeat scroll 0 0;}
.zzsc .tab a:hover{ background:#fff; text-decoration:none;}
.zzsc .tab a.on{ background:#fff; text-decoration:none;border-bottom: 1px solid #fff;}
.zzsc .content{
    height:643px;
    margin-bottom: 10px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
	overflow-y:scroll;
    width: 1020px;}
.zzsc .content ul{ position:absolute; left:0; top:0;  height:100%;}
.zzsc .content li{ width:1020px; float:left; height:100%;}
.zzsc .content li .my-tiezi{ width:1020px;}
.zzsc .content li p{ padding:10px;}
</style>
  
<title>我的个人信息</title>
</head>

<body>
<div id="wapper">
	<div class="header">
		<div class="kuang">
		<div class="pic"><a href="/luntan/index.php/Home/Mypage/touxiang" target="_blank"><img src='/luntan/Public/uploads/<?php echo ($arr["head"]); ?>'></a></div>
		
		<div class="mes">
			<div class="mes-1"><h3><?php echo ($arr["username"]); ?></h3></div>
		    <div class="mes-2"><h3>个人简介:</h3><p><?php echo ((isset($arr["intro"]) && ($arr["intro"] !== ""))?($arr["intro"]):"还没有添加简介(╯﹏╰)"); ?></p>
			<a href="/luntan/index.php/Home/Mypage/xinxi">编辑个人信息</a></div>
			<a href="<?php echo U('Login/delsession');?>"><input type="button" value="退出登录" class="bt2"></a>
			<a href="<?php echo U('Index/index');?>"><input type="button" value="论坛首页" class="bt2"></a>
		</div>
			
			
		</div>
	</div>
	
	
	<div class="admin-index">
		<div class="ad-left">
			<ul>
				<li><span>粉丝：</span><p><?php echo ($count6["count"]); ?></p></li>
				<li><span>关注：</span><p><?php echo ($count6["count1"]); ?></p></li>
				<li><span>经验：</span><p><?php echo ($arr["exper"]); ?></p></li>
				<li><span>等级：</span><p><?php if($data['exper'] < 500): if($exper < 200): ?>初级用户
							<?php else: ?>
							中级用户<?php endif; ?>
					<?php else: ?>高级用户<?php endif; ?>
               </p></li>
			
			</ul>
		</div>
		
		<div class="ad-right">
			<!-- 代码部分begin -->
<div class="zzsc">
	<div class="tab">
    	<a href="javascript:;" class="on">我的帖子</a>
        <a href="javascript:;">回复我的帖子</a>
        <a href="javascript:;" >收藏</a>
		<a href="javascript:;">回复我</a>
        <a href="javascript:;" style="border-right:0px;">好友通知</a>

       
    </div>
    <div class="content">
    	<ul>
        	<li><div class="my-tiezi">
			     <?php if(is_array($list)): foreach($list as $key=>$vo): ?><div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p><?php echo ($vo["title"]); ?></p>
						<h3>帖子分类：</h3>
				        <p><?php echo ($vo["class"]); ?></p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p><?php echo ($vo["content"]); ?></p>
					</div>
					<div class="ct-bt">
					<a href="<?php echo U('Message/remen',array('tid' => $vo['tid']));?>" target="_blank"><input type="button" value="查看" class="bt"></a>
					</div>	
			   </div><?php endforeach; endif; ?>
			   
				
			  </div>
			<br/><br/>
			<div align="center">
		     <?php echo ($show); ?>
			
		
	        </div>

			
			
			</li>
			
			
               <li><div class="my-tiezi">
				
			     <?php if(is_array($list1)): foreach($list1 as $key=>$v1): ?><div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p><?php echo ($v1["title"]); ?></p>
						<h3>帖子分类：</h3>
				        <p><?php echo ($v1["class"]); ?></p>
						<h3>发布人：</h3>
				        <p><?php echo ($v1["fbr"]); ?></p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p><?php echo ($v1["con"]); ?></p>
					</div>
					
					
			   </div>
			   <div class="tiezi-reply">
			   		<div class="ct-md">
					<h4><?php echo ($v1["aun"]); ?></h4><span>回复我：</span>
					<p><?php echo ($v1["ac"]); ?></p>
					</div>
			   		
					<form action='<?php echo U('Message/doLook');?>' method='post'>
						<input type="hidden" name="v" value="<?php echo ($v1["aid"]); ?>"/>
						<input type="submit" value="朕已阅" class="bttt" name="b1" /></form>
						
					
			   </div><?php endforeach; endif; ?>
			   

			</div>
			    <br/><br/>
			    <div align="center">
		         <?php echo ($show2); ?>
			
		
	             </div>
			

			
			
			</li>
			
			<li><div class="my-tiezi">
		        <?php if(is_array($c)): foreach($c as $key=>$vo): $tie=M('Tie'); $where['tid']=$vo; $t=$tie->where($where)->find(); $u=M('User'); $where['id']=$t['uid']; $us=$u->where($where)->find(); ?> 
				<div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p><?php echo ($t["title"]); ?></p>
						<h3>帖子分类：</h3>
				        <p><?php echo ($t["class"]); ?></p>
						<h3>发布人：</h3>
				        <p><?php echo ($us["username"]); ?></p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p><?php echo ($t["content"]); ?></p>
					</div>
					
					<div class="ct-bt">
					<a href="<?php echo U('Message/remen',array('tid' => $vo['tid']));?>" target="_blank"><input type="button" value="查看" class="bt"></a>
					</div>
			   </div><?php endforeach; endif; ?>
				
			 
			
			</div>
			<br/><br/>
			<div align="center">
		     <?php echo ($show1); ?>
			
		
	        </div>

			
			
			</li>
			
			<li><div class="my-tiezi">
			     <?php if(is_array($list2)): foreach($list2 as $key=>$v2): ?><div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>帖子题目：</h3>
				        <p><?php echo ($v2["title"]); ?></p>
						<h3>帖子分类：</h3>
				        <p><?php echo ($v2["class"]); ?></p>
						<h3>发布人：</h3>
				        <p><?php echo ($v2["fbr"]); ?></p>
					 </div>
				  	<div class="ct-md">
					<span>内容:</span><p><?php echo ($v2["con"]); ?></p>
					</div>
					
					
			   </div>
			   <div class="tiezi-reply">
			   		<div class="ct-md">
					<h4><?php echo ($v2["aun"]); ?></h4><span>回复我：</span>
					<p><?php echo ($v2["ac"]); ?></p>
					</div>
			   		 
			   		<form action='<?php echo U('Message/doLook');?>' method='post'>
						<input type="hidden" name="v" value="<?php echo ($v2["aid"]); ?>"/>
						<input type="submit" value="朕已阅" class="bttt" name="b2" /></form>
					
						
					
			   </div><?php endforeach; endif; ?>
			   

			 </div>
			    <br/><br/>
			    <div align="center">
		         <?php echo ($show3); ?>
			
		
	             </div>
			

			
			
			</li>
			
			<li><div class="my-tiezi">
			     <?php if(is_array($data)): foreach($data as $key=>$list): $user=M('User'); $where['id']=$list['fid']; $arr=$user->where($where)->find(); ?>
				 <div class="tiezi-ct">
			     	 <div class="tiezi-ct-top">
						<h3>好友验证</h3>
					 </div>
				  	<div class="ct-md">
					<p><?php echo ($arr["username"]); ?>添加你为好友</p>
					</div>
					<div class="ct-bt">
	       	            <a href="<?php echo U('Message/doSavemsg');?>?id=<?php echo ($list["id"]); ?>" class="bt">同意</a>
					    <a href="<?php echo U('Message/doSavemsg1');?>?id=<?php echo ($list["id"]); ?>" class="bt">拒绝</a>
					</div>	
			   </div><?php endforeach; endif; ?>
			   
				
			  </div>
			
			
			</li>
			
			
          
        </ul>
    </div>
</div>


<script>
$(function(){
	$('.zzsc .content ul').width(1020*$('.zzsc .content li').length+'px');
	$(".zzsc .tab a").mouseover(function(){
		$(this).addClass('on').siblings().removeClass('on');
		var index = $(this).index();
		number = index;
		var distance = -1020*index;
		$('.zzsc .content ul').stop().animate({
			left:distance
		});
	});
	
	
	

});
</script>
<!-- 代码部分end -->
			
	
	
		</div>
</div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
</div>


</body>
</html>